﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WxxMail.IDAO;

namespace WxxMail.DAO
{
  public partial class DBSession : IDBSession
  {
        
        private IAnswerDAO _AnswerDAO;
        public IAnswerDAO AnswerDAO
        {
            get
            {
                if (_AnswerDAO == null)
                {
                    _AnswerDAO = new AnswerDAO();
                }
                return _AnswerDAO;
            }
            set { _AnswerDAO = value; }
        }
        
        private IApplyDAO _ApplyDAO;
        public IApplyDAO ApplyDAO
        {
            get
            {
                if (_ApplyDAO == null)
                {
                    _ApplyDAO = new ApplyDAO();
                }
                return _ApplyDAO;
            }
            set { _ApplyDAO = value; }
        }
        
        private IArticleDAO _ArticleDAO;
        public IArticleDAO ArticleDAO
        {
            get
            {
                if (_ArticleDAO == null)
                {
                    _ArticleDAO = new ArticleDAO();
                }
                return _ArticleDAO;
            }
            set { _ArticleDAO = value; }
        }
        
        private IArticleAttachDAO _ArticleAttachDAO;
        public IArticleAttachDAO ArticleAttachDAO
        {
            get
            {
                if (_ArticleAttachDAO == null)
                {
                    _ArticleAttachDAO = new ArticleAttachDAO();
                }
                return _ArticleAttachDAO;
            }
            set { _ArticleAttachDAO = value; }
        }
        
        private IArticleChangeDAO _ArticleChangeDAO;
        public IArticleChangeDAO ArticleChangeDAO
        {
            get
            {
                if (_ArticleChangeDAO == null)
                {
                    _ArticleChangeDAO = new ArticleChangeDAO();
                }
                return _ArticleChangeDAO;
            }
            set { _ArticleChangeDAO = value; }
        }
        
        private IArticleCommentDAO _ArticleCommentDAO;
        public IArticleCommentDAO ArticleCommentDAO
        {
            get
            {
                if (_ArticleCommentDAO == null)
                {
                    _ArticleCommentDAO = new ArticleCommentDAO();
                }
                return _ArticleCommentDAO;
            }
            set { _ArticleCommentDAO = value; }
        }
        
        private IArticlePictureDAO _ArticlePictureDAO;
        public IArticlePictureDAO ArticlePictureDAO
        {
            get
            {
                if (_ArticlePictureDAO == null)
                {
                    _ArticlePictureDAO = new ArticlePictureDAO();
                }
                return _ArticlePictureDAO;
            }
            set { _ArticlePictureDAO = value; }
        }
        
        private IArticlePraiseDAO _ArticlePraiseDAO;
        public IArticlePraiseDAO ArticlePraiseDAO
        {
            get
            {
                if (_ArticlePraiseDAO == null)
                {
                    _ArticlePraiseDAO = new ArticlePraiseDAO();
                }
                return _ArticlePraiseDAO;
            }
            set { _ArticlePraiseDAO = value; }
        }
        
        private IArticleRecordDAO _ArticleRecordDAO;
        public IArticleRecordDAO ArticleRecordDAO
        {
            get
            {
                if (_ArticleRecordDAO == null)
                {
                    _ArticleRecordDAO = new ArticleRecordDAO();
                }
                return _ArticleRecordDAO;
            }
            set { _ArticleRecordDAO = value; }
        }
        
        private IArticleShareDAO _ArticleShareDAO;
        public IArticleShareDAO ArticleShareDAO
        {
            get
            {
                if (_ArticleShareDAO == null)
                {
                    _ArticleShareDAO = new ArticleShareDAO();
                }
                return _ArticleShareDAO;
            }
            set { _ArticleShareDAO = value; }
        }
        
        private IArticleVideoDAO _ArticleVideoDAO;
        public IArticleVideoDAO ArticleVideoDAO
        {
            get
            {
                if (_ArticleVideoDAO == null)
                {
                    _ArticleVideoDAO = new ArticleVideoDAO();
                }
                return _ArticleVideoDAO;
            }
            set { _ArticleVideoDAO = value; }
        }
        
        private IArticleVisitDAO _ArticleVisitDAO;
        public IArticleVisitDAO ArticleVisitDAO
        {
            get
            {
                if (_ArticleVisitDAO == null)
                {
                    _ArticleVisitDAO = new ArticleVisitDAO();
                }
                return _ArticleVisitDAO;
            }
            set { _ArticleVisitDAO = value; }
        }
        
        private ILoginDAO _LoginDAO;
        public ILoginDAO LoginDAO
        {
            get
            {
                if (_LoginDAO == null)
                {
                    _LoginDAO = new LoginDAO();
                }
                return _LoginDAO;
            }
            set { _LoginDAO = value; }
        }
        
        private IUserLoginDAO _UserLoginDAO;
        public IUserLoginDAO UserLoginDAO
        {
            get
            {
                if (_UserLoginDAO == null)
                {
                    _UserLoginDAO = new UserLoginDAO();
                }
                return _UserLoginDAO;
            }
            set { _UserLoginDAO = value; }
        }
     }
}